// app.js
App({
  onLaunch() {
    wx.cloud.init({
      env: 'env-1g3qmxb275ee4cf1',
      traceUser: true,
    });
    wx.cloud.callFunction({name:'getopenid'}).then(res=>{
      console.log(res)
      wx.setStorageSync('openid', res.result.openid)
    })
  },
  globalData: {
    userInfo: null
  }
})
